package com.sevenwolves.utils;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public final class HibernateUtil {
	private static SessionFactory factory = null;
	private HibernateUtil(){
		//private constructor
	}
	static{
		factory = new Configuration().configure().buildSessionFactory();
	}
	public static SessionFactory getSessionFactory(){
		return factory;
	}
}
